package com.ctgu.simplespringboot.service.UserServiceImpl;

import com.ctgu.simplespringboot.Entity.Emp;
import com.ctgu.simplespringboot.dao.EmpDao;
import com.ctgu.simplespringboot.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.UUID;

@Service
@Transactional
public class EmpServiceImpl implements EmpService{

    @Autowired
    private EmpDao empDao;
    @Override
    public List<Emp> findAll() {
        return empDao.findAll();
    }

    @Override
    public void save(Emp emp) {
        empDao.save(emp);
    }

    @Override
    public void delete(int id) {
        empDao.delete(id);
    }

    @Override
    public Emp findById(int id) {
        return empDao.findById(id);
    }

    @Override
    public void update(Emp emp) {
        empDao.update(emp);
    }
}
